package Class;

// 用户类
public class User {
    private String userName;
    private String password;
    private String telephone;
    private String ID;
    private String name;
    private String cardNumber;
    private double demandMoney = 0;
    private double TimeMoney = 0;

    public User() {
    }

    public User(String userName, String password, String telephone, String ID, String name,
                String cardNumber, double money1, double money2) {
        this.userName = userName;
        this.password = password;
        this.telephone = telephone;
        this.ID = ID;
        this.name = name;
        this.cardNumber = cardNumber;
        this.demandMoney = money1;
        this.TimeMoney = money2;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public double getDemandMoney() {
        return demandMoney;
    }

    public void setDemandMoney(double demandMoney) {
        this.demandMoney = demandMoney;
    }

    public double getTimeMoney() {
        return TimeMoney;
    }

    public void setTimeMoney(double timeMoney) {
        TimeMoney = timeMoney;
    }

    @Override
    public String toString() {
        return "User{" +
                "userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", telephone='" + telephone + '\'' +
                ", ID='" + ID + '\'' +
                ", name='" + name + '\'' +
                ", cardNumber='" + cardNumber + '\'' +
                ", demandMoney=" + demandMoney +
                ", TimeMoney=" + TimeMoney +
                '}';
    }
}
